#include "WorkingDialog.h" SaCallbackStruct *SaExecSQL(char *serv, char *db, int vendor, char *statement);
SGESYBASE, SGEORACLE
, or SGEINFORMIX
)SaCallbackStruct.
This must be free'd by calling SaFreeCbs
, once you are finished with it. NULL is returned if an error occurs.SaExecSQL
allows ad hoc queries and SQL to be performed. By supplying the vendor, server, database and SQL string, you can execute any SQL statement in any vendor's environment.
All of the results of the SQL statement are returned in the SaCallbackStruct
. Data can be accessed in the same manner any Population Callback would access the callback structure.
Stored Procedures can be executed as well. Simply create the execute statement, with all of the arguments for the procedure, and use it as the statement argument to SaExecSQL
().
The types of SQL which can be used are: